TARGET=trainroute
OBJS=main.o block.o rfid_tag.o init.o event.o schedule.o element.o logging.o
LIBS= 
VPATH=src src/objects src/functions
CFLAGS=-c -Wall
CC=g++

.PHONY:all clean debug

all:$(TARGET)

debug: CFLAGS+=-DDEBUG
debug: clean
debug: all

$(TARGET):$(OBJS)
	$(CC) $(LIBS) -o $(TARGET) $(OBJS)

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean: 
	rm -vf *.o core* $(TARGET) $(OBJS)
